//package com.relax.guolv;
//
//import org.springframework.core.type.ClassMetadata;
//import org.springframework.core.type.classreading.MetadataReader;
//import org.springframework.core.type.classreading.MetadataReaderFactory;
//import org.springframework.core.type.filter.TypeFilter;
//
//import java.io.IOException;
//
//public class MyFilter implements TypeFilter {
//    public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException {
//        //metadataReader 代表读取到的当前扫描类的信息
//        //metadataReaderFactory
//        ClassMetadata classMetadata = metadataReader.getClassMetadata();
//        String className = classMetadata.getClassName();
//
////        if (className.contains("Dao")){
////            return true;
////        }else{
////            return false;
////        }
//        return true;
//
//
//    }
//}
